package com.study.thymeleaf.entity;

import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.study.thymeleaf.core.BasicEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dept")
public class Dept extends BasicEntity {

    @ApiModelProperty("部门编号")
    @TableId(value = "deptno", type = IdType.AUTO)
    private Integer deptno;

    @ApiModelProperty("部门名称")
    @TableField("dname")
    private String dname;

    @ApiModelProperty("部门所在地")
    @TableField("loc")
    private String loc;

}
